﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class UserControls_ctlSignOut : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Setting the username on the webpage.
        HttpCookie cookie = Request.Cookies.Get("requmanaLogin");
        if (cookie != null)
        {
            labelUsername.Text = cookie.Values.Get(1) + " " + cookie.Values.Get(2);
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Response.Cookies["requmanaLogin"].Expires = DateTime.Now.AddDays(-1);
        Response.Redirect("FrmLogin.aspx");
    }
}
